# -*- coding: utf-8 -*-

def SelectSort(arr):
    n = len(arr)
    if n == 1:
        return 1
    for i in range(n):
        mid = i
        for j in range(i, n-1):
            if arr[mid] > arr[j+1]:
                mid = j + 1
        arr[i], arr[mid] = arr[mid], arr[i]
        
s1 = [3,18,0,32,2,1]
SelectSort(s1)
print(s1)
